home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CUCD / Programming / OUI / include / gadgets / rcs / fbutton.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  1.9 KB  |  124 lines

  1. head    1.3;
  2. access;
  3. symbols;
  4. locks
  5.     dlorre:1.3; strict;
  6. comment    @ * @;
  7.  
  8.  
  9. 1.3
  10. date    97.07.14.04.26.58;    author dlorre;    state Exp;
  11. branches;
  12. next    1.2;
  13.  
  14. 1.2
  15. date    96.08.28.20.09.15;    author dlorre;    state Exp;
  16. branches;
  17. next    1.1;
  18.  
  19. 1.1
  20. date    96.08.22.02.06.07;    author dlorre;    state Exp;
  21. branches;
  22. next    ;
  23.  
  24.  
  25. desc
  26. @Oui.lib -- Object User Interface
  27. Projet créé en 1994
  28. Auteur: Dominique Lorre
  29. @
  30.  
  31.  
  32. 1.3
  33. log
  34. @*** empty log message ***
  35. @
  36. text
  37. @#ifndef CLASS_FBUTTON_H
  38. #define CLASS_FBUTTON_H
  39.  
  40. #ifndef EXEC_TYPES_H
  41. #include <exec/types.h>
  42. #endif
  43.  
  44. #ifndef INTUITION_INTUITION_H
  45. struct Image ;
  46. struct IntuiText ;
  47. #endif
  48.  
  49. #ifndef GRAPHICS_TEXT_H
  50. struct TTextAttr ;
  51. struct TextFont ;
  52. #endif
  53.  
  54. #ifndef CLASS_WINDOW_H
  55. class window ;
  56. #endif
  57.  
  58. #ifndef CLASS_GADGETLIST_H
  59. class gadgetlist ;
  60. #endif
  61.  
  62. #ifndef CLASS_GADGET_H
  63. #include "gadgets/gadget.h"
  64. #endif
  65.  
  66. #ifndef CLASS_SLIST_H
  67. class slist ;
  68. class slink ;
  69. #endif
  70.  
  71. // ========================================================================
  72. // ==========================  FBUTTON CLASS ==============================
  73. // ========================================================================
  74.  
  75. class fbutton : public gadget
  76. {
  77.     STRPTR      text ;
  78.     STRPTR      norm1 ;
  79.     STRPTR      norm2 ;
  80.     STRPTR      under ;
  81.  
  82.     IntuiText   *it1 ;
  83.     IntuiText   *it2 ;
  84.     IntuiText   *it3 ;
  85.  
  86.     TextFont    *font ;
  87.     TTextAttr   *underline ;
  88. public:
  89.     fbutton(gadgetlist *gl,
  90.            void (window::*func)(gadget *, unsigned long, unsigned short),
  91.            const char *t, BOOL def=FALSE, BOOL disable=FALSE) ;
  92.     ~fbutton() ;
  93.     void select(BOOL sel, BOOL disable=FALSE) ;
  94.     void keystroke(BOOL shifted) ;
  95.     void action(unsigned long classe, unsigned short code) ;
  96. };
  97. #endif
  98. @
  99.  
  100.  
  101. 1.2
  102. log
  103. @def placé à faux par défaut
  104. @
  105. text
  106. @d55 1
  107. a55 1
  108.            STRPTR t, BOOL def=FALSE) ;
  109. d57 1
  110. a57 1
  111.     void select(BOOL sel) ;
  112. @
  113.  
  114.  
  115. 1.1
  116. log
  117. @Initial revision
  118. @
  119. text
  120. @d55 1
  121. a55 1
  122.            STRPTR t, BOOL def) ;
  123. @
  124.